package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc TargetContGainIssueStateDto
 * @使用场景
 */
@Data
public class TargetContGainIssueStateDto
  extends BaseDto
  implements Serializable {

  /**
   * 自定义字段
   */
  @ApiModelProperty("自定义字段")
  private String customField;

  /**
   * 通用文本字段
   */
  @ApiModelProperty("通用文本字段")
  private String comTxtField;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    TargetContGainIssueStateDto that = (TargetContGainIssueStateDto) o;
    return customField == that.customField && comTxtField == that.comTxtField;
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), customField, comTxtField);
  }

}
